package com.googlecode.animator.data.materials
{
	import com.googlecode.animator.data.IValueObject;
	
	/**
	 * The MaterialVO enables data to be stored about a material used in
	 * an Object3D. Default values have been added where possible. The name, type, 
	 * filePath, face and swf properties need to be defined where applicable. 
	 * @author ~martin
	 * 
	 */
	public class MaterialVO extends BaseMaterial
	{

		override public function clone(src:* = null):IValueObject
		{
			if(src == null)
			{
				src = super.clone(new MaterialVO());
			}else
			{
				src = super.clone(src);
			}
			
			return src;
		}
		
		override public function toXML(src:XML = null):XML
		{	
			if(src == null)
			{
				src = super.toXML();
				
			}else
			{
				src = super.toXML(src);
			}	
			
			return src;
		}
		
		override public function fromXML(src:XML):void
		{
			super.fromXML(src);

		}

	}
}